from django.conf.urls.defaults import *
from views import *
  
urlpatterns = patterns('',
    url(r'spacing/array/(\d+)/$', array_cluster_spacing_excel, name='array_cluster_spacing_excel'),
    url(r'shapefile/array/(?P<array_id_list_str>(\d+,?)+)/$', array_shapefile,name='array_shapefile'),
    url(r'shapefile/mpa/(?P<mpa_id_list_str>(\d+,?)+)/$', mpa_shapefile,name='mpa_shapefile'),
    url(r'habitatrepresentation/mpa/(\d+)/(\w+)/$',mpa_habitat_representation, name='mpa_habitat_representation'),
    (r'habitatrepresentation/array/(\d+)/(\w+)/$',array_habitat_representation_summed),
    url(r'habitatreplication/array/excel/(\d+)/$',array_replication_excel, name='array_replication_excel'),
    url(r'habitatreplication/array/(\d+)/(\w+)/$',array_habitat_replication, name='array_replication'),
    url(r'habitatreplication/mpa/(\d+)/$',mpa_habitat_replication, name='mpa_replication'),
    url(r'habitatspacing/array/(\d+)/(\w+)/$',array_spacing_report, name='array_spacing'),
    url(r'spacingkml/array/(\d+)/(\w+)/(\d+)/$',array_spacing_kml, name='array_spacing_kml'),
    url(r'spacingkmz/array/(\d+)/(\w+)/(\d+)/$',array_spacing_kmz, name='array_spacing_kmz'),
    url(r'spacingkml/array/(\d+)/(\w+)/$',array_spacing_kml, name='array_spacing_kml_null_lop'),
    url(r'spacingkmz/array/(\d+)/(\w+)/$',array_spacing_kmz, name='array_spacing_kmz_null_lop'),
    url(r'habitatspreadsheet/array/(?P<array_id_list_str>(\d+,?)+)/$',array_list_habitat_excel, name='array_habitat_spreadsheet'),
    url(r'overlap/array/(?P<array_id_list_str>(\d+,?)+)/$',overlap_geotiff_response, name='overlap_geotiff_response'),
    url(r'summary/array/(?P<array_id_list_str>(\d+,?)+)/$',array_summary_excel,name='array_summary_excel'),
)